package com.czxy.demo08;

public class Test01 {
    public static void main(String[] args) {
        int[] arr = {88,96,97,74,90,58,77,90,99};
        int min = arr[0];
        for (int i : arr) {
            if (i<min){
                min = i;
            }
        }
        int sum = 0;
        for (int i : arr) {
            sum+=i;
        }
        System.out.println("平均分是: "+((sum-min)/(arr.length-1)));
    }
}
